import { createRouter, createWebHistory} from 'vue-router'; // history
// createWebHashHistory hash

const routes = [
  {
    path: '/',
    name: 'login',
    component: () => import('../views/Login.vue') // 懒加载
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('../views/Home.vue') // 懒加载
  },
  {
    path: '/about',
    name: 'about',
    component: () => import('../views/About.vue') // 懒加载
  }
]
const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router
